using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using NoMana.Components.Camera;


namespace NoMana.Components.DeferredShader
{
    class Scene
    {
        private Game game;

        Model shipModel;
        Texture2D shipColor;
        Effect gbufferEffect;

        public Scene(Game game)
        {
            this.game = game;
        }

        public void InitializeScene()
        {
            gbufferEffect = game.Content.Load<Effect>("Effects\\DeferredShader\\RenderGBuffer");
        }
        public void DrawScene(GameCamera camera, GameTime gameTime)
        {

            //game.GraphicsDevice.RenderState.DepthBufferEnable = true;
            //game.GraphicsDevice.RenderState.CullMode = CullMode.CullCounterClockwiseFace;
            //game.GraphicsDevice.RenderState.AlphaBlendEnable = false;

            gbufferEffect.Parameters["World"].SetValue(Matrix.Identity);
            gbufferEffect.Parameters["View"].SetValue(camera.ViewMatrix);
            gbufferEffect.Parameters["Projection"].SetValue(camera.ProjectionMatrix);
            gbufferEffect.Parameters["Texture"].SetValue(shipColor);

            gbufferEffect.CurrentTechnique.Passes[0].Apply();

        }
    }
}